package ltd.hxya.novel.search.feign;


import ltd.hxya.novel.common.bean.Result;
import ltd.hxya.novel.common.to.book.BookTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("novel-book")
public interface BookFeignService {

    @GetMapping("/book/listAllBook")
    public Result<List<BookTo>> listAllBook();

}
